using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class PhieuDatVe : BusinessBase<int>
    {
        #region Declarations

		private System.DateTime _ngayDat = new DateTime();
		private bool _tinhTrangVeDat = default(Boolean);
		
		private Ve _ve = null;
		
		
		#endregion

        #region Constructors

        public PhieuDatVe() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_ngayDat);
			sb.Append(_tinhTrangVeDat);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual System.DateTime NgayDat
        {
            get { return _ngayDat; }
			set
			{
				OnNgayDatChanging();
				_ngayDat = value;
				OnNgayDatChanged();
			}
        }
		partial void OnNgayDatChanging();
		partial void OnNgayDatChanged();
		
		public virtual bool TinhTrangVeDat
        {
            get { return _tinhTrangVeDat; }
			set
			{
				OnTinhTrangVeDatChanging();
				_tinhTrangVeDat = value;
				OnTinhTrangVeDatChanged();
			}
        }
		partial void OnTinhTrangVeDatChanging();
		partial void OnTinhTrangVeDatChanged();
		
		public virtual Ve Ve
        {
            get { return _ve; }
			set
			{
				OnVeChanging();
				_ve = value;
				OnVeChanged();
			}
        }
		partial void OnVeChanging();
		partial void OnVeChanged();
		
        #endregion
    }
}
